Skip to content

Conversation

@cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Nov 22, 2025

  • Create a trait that is shared between the commands
  • Move the QueueManager to the handle() method to avoid unnecessary construction/references
  • Deletes queue:continue and just moves it to be an alias of ResumeCommand

@cosmastech
Copy link
Contributor Author

cosmastech commented Nov 22, 2025

Not sure about these test failures. Passing on my local, look like they're related to dependencies?

edit: I misread the warnings as errors. Was a flaky test, for which I created a separate PR to fix. #57864

* @var list<string>
*/
protected $description = 'Resume job processing for a paused queue';
protected $aliases = ['queue:continue'];
Copy link
Contributor

@vadimonus vadimonus Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is two command with same names realy needed?

here was just renaming one command to other. d8cbad4
maybe having two commands is some merging mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good call, thanks for linking to the commit.

@taylorotwell let me know if you want me to keep ResumeCommand or ContinueCommand.

return isset($queue)
? [$connection, $queue]
: [$this->laravel['config']['queue.default'], $connection];
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the following?

return str_contains($queue, ':')
    ? explode(':', $queue, 2)
    : [$this->laravel['config']['queue.default'], $queue];

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong feeling about one being better than the other. I was just hoping to move this to a trait to avoid drift between the commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants